<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	


<ui:composition template="/pages/templates/commonLayoutCli.xhtml">

	<ui:define name="header">
		<center>
			<p:graphicImage name="logoMedMark2.jpg" library="images" />
		</center>
	</ui:define>
	<ui:define name="content">

	<h:form>
	 
		<center>
			
			<p:growl id="growlLogin" showDetail="false" sticky="false"
				life="6000" autoUpdate="true" />
				
			<p:messages id="messagesLogin" showDetail="false" autoUpdate="true" closable="true"/>
			
			<p:panel style="width:40%;align:center;valign:middle;" >
				
				<table border="0" align="center" cellpadding="1" cellspacing="2">
				  <tr>
				    <th>Login</th>
				    <th>Senha</th>
				  </tr>
				  <!-- <tr>
				    <td><h:outputLabel value="Faça Login" /></td>
				  </tr> -->
				  <tr>
				  	<td>
				  		<p:inputText id="login" value="#{beanUsuario.login}"
				  			requiredMessage="Favor informar o login do usuário." maxlength="50"
				  		 />
				  	</td>
				  	<td>
				  		<p:password id="senha" value="#{beanUsuario.senha}" 
				  			requiredMessage="Favor informar a senha do usuário." maxlength="50"
				  		/>
				  	</td>
				  </tr>		
				  
				  <tr>
				   	<td><p:commandButton style="text-align:center" value="Logar" ajax="false" 
				   		action="#{beanUsuario.validaLogin(beanUsuario.login,beanUsuario.senha)}"
				   		 />
				   	</td>
				  </tr>		
				</table>
				  

			</p:panel>				
		</center>

	</h:form>
</ui:define>

</ui:composition>


</html>